<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <title>积分明细</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <script src="__PUBLIC__/js/rem.js"></script> 
    <script src="__PUBLIC__/js/jquery.min.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/base.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/page.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/all.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/mui.min.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/loaders.min.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/loading.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/slick/slick.css"/>
	<script type="text/javascript">
		$(window).load(function(){
			$(".loading").addClass("loader-chanage")
			$(".loading").fadeOut(300)
		})
	</script>
</head>
<!--loading页开始-->
<div class="loading">
	<div class="loader">
        <div class="loader-inner pacman">
          <div></div>
          <div></div>
          <div></div>
          <div></div>
          <div></div>
        </div>
	</div>
</div>
<!--loading页结束-->
	<body>
		<div class="headertwo clearfloat" id="header">
			<a href="javascript:history.go(-1)" class="fl box-s"><i class="iconfont icon-arrow-l fl"></i></a>
			<p class="fl">积分明细</p>
		</div>
		
		<div class="profit clearfloat" id="main">
			
			<div class="bottom clearfloat">
				<div class="noticetwo">
					<div class="tab-hd clearfloat">
						<ul class="tab-nav clearfloat">
						  <li><a href="#">积分明细</a></li>
						</ul>
					</div>
					<div class="tab-bd clearfloat">
						<div class="tab-pal">
							<volist name="list" id="vo" key="k" >
								<dl class="list clearfloat box-s fl">
									<dt>
										<p class="fl">
										<?php
											if(!$vo['user_id']){
												echo $vo['reason'];
											}else{
												$mysql_server_name='127.0.0.1'; //改成自己的mysql数据库服务器
												 
												$mysql_username='root'; //改成自己的mysql数据库用户名
												 
												$mysql_password='cdzx123321'; //改成自己的mysql数据库密码
												 
												$mysql_database='cdzx'; //改成自己的mysql数据库名

												$conn=mysql_connect($mysql_server_name,$mysql_username,$mysql_password) or die("数据库链接错误") ; //连接数据库
												 
												mysql_query("set names 'utf8'"); //数据库输出编码 
												 
												mysql_select_db($mysql_database); //打开数据库
												$sql ="select * from user where user_Id = ".$vo['user_id']; //SQL语句
												$result = mysql_query($sql,$conn); //查询
												$row = mysql_fetch_array($result);
												echo '赠送对象:'.$row['name'];
											}
										?>
										</p>
										<span class="fr">{$vo.points}</span>
									</dt>
									<dd>{$vo.shijian}</dd>
								</dl>
							</volist>
						</div>
					</div>
				</div>
				
			</div>
		</div>
	</body>
	<script type="text/javascript" src="__PUBLIC__/js/jquery-1.8.3.min.js" ></script>
	<script type="text/javascript" src="__PUBLIC__/js/jquery.SuperSlide.2.1.js" ></script>
	<script type="text/javascript" src="__PUBLIC__/js/hmt.js" ></script>
	<script type="text/javascript">
		jQuery(".noticetwo").slide({ titCell:".tab-hd li", mainCell:".tab-bd",trigger: "click",delayTime:0 });
	</script>
</html>
